<div>
    <table class="table table-striped table-debt">
        <thead>
            <tr>
                <th>Кто</th>
                <th>Сколько</th>
            </tr>
        </thead>
        <? foreach ($this->debts as $debt):?>
            <tr onclick="money.showFormDebt(<?=$debt->getDebtId()?>)">
                <td><?= $debt->getNameDebter() ?></td>
                <td><?= $debt->getDebtSumm() ?> р.</td>
            </tr>
        <? endforeach; ?>
    </table>
    <div class="form-inline">
        <button class="btn-success" onclick="money.showFormDebt()" value="Добавить">Добавить</button>
    </div>
</div>